package guanqu.beans;

import java.io.Serializable;
import java.util.Calendar;

public class RealTimeIrrBRWaterCannalPK implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -1015237608939152693L;
	private String stadiaCode;     //测站编码
	private Calendar meaTime;      //采集时间
	public String getStadiaCode() {
		return stadiaCode;
	}
	public void setStadiaCode(String stadiaCode) {
		this.stadiaCode = stadiaCode;
	}
	public Calendar getMeaTime() {
		return meaTime;
	}
	public void setMeaTime(Calendar meaTime) {
		this.meaTime = meaTime;
	}
	
	@Override  
    public boolean equals(Object o) {  
        if(o instanceof RealTimeIrrBRWaterCannalPK){  
        	RealTimeIrrBRWaterCannalPK key = (RealTimeIrrBRWaterCannalPK)o ;  
            if(this.stadiaCode == key.getStadiaCode() && this.meaTime.equals(key.getMeaTime())){  
                return true ;  
            }  
        }  
        return false ;  
    }  
	@Override
	public int hashCode() {
		return this.stadiaCode.hashCode();
	}
}
